package com.traffic.bus.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.traffic.bus.service.NoticeService;
import com.traffic.servlet.Response;

import net.sf.json.JSONObject;

@Controller
@RequestMapping(value = "/notice")
public class NoticeController {

	@Autowired
	private NoticeService noticeService;

	@RequestMapping(value = "/getNoticeInterFace", method = RequestMethod.POST)
	@ResponseBody
	public JSONObject getLineDetailInfoByInterFace() {
		return Response.responseSuccess(noticeService.getNoticeInterFace());
	}
}
